package com.study.zzedu.fragment.home;

import android.content.Context;

import com.study.zzedu.base.BasePresenter;
import com.study.zzedu.base.BaseView;
import com.study.zzedu.fragment.home.mycourse.HomeContract;
import com.study.zzedu.fragment.home.mycourse.HomeModel;
import com.study.zzedu.http.OnResultListener;

/**
 * Created by kiros on 2020/9/3.
 */

public class VideoTabPresenter extends BasePresenter<BaseView> {

    private VideoTabModel nModel;
    public VideoTabPresenter(){
        this.nModel = new VideoTabModel();
    }
    public void getDataHeader(Context context){
        nModel.getDataHeader(context,new OnResultListener() {
            @Override
            public void onSuccess(String result) {
                getView().getData(result);
            }

            @Override
            public void onError(String error) {
                getView().showError(error);
            }
        });
    }
}
